home *** CD-ROM | disk | FTP | other *** search
/ Aminet 21 / Aminet 21 (1997)(GTI - Schatztruhe)[!][Oct 1997].iso / Aminet / gfx / show / gs_src_gs.lha / gs5.03 / bseq.h < prev    next >
Text File  |  1994-07-30  |  2KB  |  62 lines

  1. /* Copyright (C) 1990, 1994 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of Aladdin Ghostscript.
  4.   
  5.   Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  6.   or distributor accepts any responsibility for the consequences of using it,
  7.   or for whether it serves any particular purpose or works at all, unless he
  8.   or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  9.   License (the "License") for full details.
  10.   
  11.   Every copy of Aladdin Ghostscript must include a copy of the License,
  12.   normally in a plain ASCII text file named PUBLIC.  The License grants you
  13.   the right to copy, modify and redistribute Aladdin Ghostscript, but only
  14.   under certain conditions described in the License.  Among other things, the
  15.   License requires that the copyright notice and this notice be preserved on
  16.   all copies.
  17. */
  18.  
  19. /* bseq.h */
  20. /* Definitions for Level 2 binary object sequences */
  21.  
  22. /* Binary object sequence element types */
  23. typedef enum {
  24.   bs_null = 0,
  25.   bs_integer = 1,
  26.   bs_real = 2,
  27.   bs_name = 3,
  28.   bs_boolean = 4,
  29.   bs_string = 5,
  30.   bs_eval_name = 6,
  31.   bs_array = 9,
  32.   bs_mark = 10,
  33.     /*
  34.      * We extend the PostScript language definition by allowing
  35.      * dictionaries in binary object sequences.  The data for
  36.      * a dictionary is like that for an array, with the following
  37.      * changes:
  38.      *    - If the size is an even number, the value is the index of
  39.      * the first of a series of alternating keys and values.
  40.      *    - If the size is 1, the value is the index of another
  41.      * object (which must also be a dictionary, and must not have
  42.      * size = 1); this object represents the same object as that one.
  43.      */
  44.   bs_dictionary = 15
  45. } bin_seq_type;
  46. #define bs_executable 128
  47.  
  48. /* Definition of an object in a binary object sequence. */
  49. typedef struct {
  50.   byte tx;            /* type and executable flag */
  51.   byte unused;
  52.   union {
  53.     bits16 w;
  54.     byte b[2];
  55.   } size;
  56.   union {
  57.     bits32 w;
  58.     float f;
  59.     byte b[4];
  60.   } value;
  61. } bin_seq_obj;
  62.